package com.jp.study.properties.method2time;


import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.util.StringUtils;

import javax.annotation.PostConstruct;

@ConfigurationProperties(prefix = "jp.executionTimelog")
public class JPMethodExecutionTimeLogProperties {

    private String exclude;

    private String[] excludeArr;

    @PostConstruct
    public void init() {
    	exclude += ",nolog";
        this.excludeArr = StringUtils.split(exclude, ",");
    }

    public String getExclude() {
        return exclude;
    }

    public void setExclude(String exclude) {
        this.exclude = exclude;
    }

    public String[] getExcludeArr() {
        return excludeArr;
    }
}
